<?php include_template('header');?>
<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" valign="top">
    <?php if(!is_login()){ ?>	
	<a href="<?php echo $config['site_url'];?>/signup.php">Join</a><br><a href="<?php echo $config['site_url'];?>/login.php">Login</a><br>
	<a href="<?php echo $config['site_url'];?>/signup.php">SubmitTopic</a><br>
	<?php }else{ ?>	
	<a href="<?php echo $config['site_url'];?>/editprofile.php">EditProfile</a><br>
	<a href="<?php echo $config['site_url'];?>/add_topic.php">SubmitTopic</a><br>
	<a href="<?php echo $config['site_url'];?>/logout.php">Logout</a><br>
	<?php } ?>
      <br>
	  <strong>Categories</strong><br>
      <br>
	  <a href="<?php echo $config['site_url'];?>">View All</a><br>
      <?php cat_list();?>
	  <br>
    <br></td>
    <td valign="top"><strong>EditProfile</strong><br>
    <br>    <form name="form1" id="form1" method="post" action="editprofile.php" style="padding:0px;margin:0px;">
      <table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="140" valign="top" style="padding-top:5px;"><strong>Old Password</strong></td>
          <td><input name="oldpassword" type="password" id="oldpassword" style="width:200px;" maxlength="16">
          </td>
        </tr>
        <tr>
          <td valign="top" style="padding-top:5px;"><strong>New Password</strong></td>
          <td><input name="newpassword" type="password" id="newpassword" style="width:200px;" maxlength="16">
		  </td>
        </tr>
		  <tr align="center">
          <td colspan="2"><input type="submit" name="Submit" value="Update"></td>
          </tr>
</table></td></tr>
      </table>
    </form></td>
  </tr>
</table>
<?php include_template('footer');?>